import service from "../utils/request";

//一个接口封装一个函数
export function admin_login( payload = {} ){
    return service.post( '/admin/login', payload )
}
export function admin_add( payload = {} ){
    return service.post( '/admin/add', payload )
}
export function admin_update( payload = {} ){
    return service.post( '/admin/update', payload )
}
export function admin_list( payload = {} ){
    return service.get( '/admin/list', { params:payload } )
}
//...
